home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / edit / elv18src.zip / Makefile.mix < prev    next >
Makefile  |  1994-01-17  |  18KB  |  728 lines

  1. # combined Makefile for ELVIS - a clone of `vi`
  2. #
  3. # After editing this Makefile as described below, you should...
  4. #
  5. # Use `make` to compile all programs
  6. # Use `make install` to copy the programs to the BIN directory
  7. # Use `make clean` to remove all object files
  8. # Use `make clobber` to remove everything except source & documentation
  9. # Use `make uue` to produce uuencoded compressed tar archives of the source
  10. # Use `make sh` to produce shar archives of the source
  11. #
  12. # Several groups of Makefile settings are included below.  Choose *ONE* group
  13. # of settings for your particular system, and leave the others commented out.
  14. # The meanings of these settings are:
  15. #    OBJ    filename extension for unlinked object files -- usually .o
  16. #    EXE    filename extension for elvis executable file -- .exe, .tpp or null
  17. #    COM    filename extension for executable support files -- .com, .tpp or null
  18. #    EXTRA    version-specific object files used in elvis
  19. #    EXTRA2    version-specific object files used in elvis & elvrec
  20. #    LIBS    any special libraries, such as "-ltermcap"
  21. #    BIN    directory where executables should be installed
  22. #    CC    the C compiler command, possibly with "memory model" flags
  23. #    CFLAGS    compiler flags used to select compile-time options
  24. #    LNK    the linker command needed to link OBJ files (if not cc)
  25. #    LFLAGS    linker flags used to select link-time options
  26. #    SMALL    flag for special small memory model compilation -- usually null
  27. #    LARGE    flag for special large memory model compilation -- usually null
  28. #    OF    link flag to control the output file's name -- usually -o<space>
  29. #    RF    flag used to denote "compile but don't link" -- usually -c
  30. #    PROGS    the list of all programs
  31. #    CHMEM    any extra commands to be run after ELVIS is linked
  32. #    SORT    if the "tags" file must be sorted, then SORT=-DSORT
  33. #    RM    the name of a program that deletes files
  34. #    CP    name of a program that copies files -- copy or cp, usually
  35. #    SYS    type of system & compiler: unx/tos/os9/dos (maybe vms?)
  36. #    DUMMY    usually nothing, but OS9 needs "dummy"
  37. #    CFG    name of compiler configuration file -- usually null
  38.  
  39. #---- These settings are recommended for Linux
  40. #OBJ=    .o
  41. #EXE=
  42. #COM=
  43. #EXTRA=    unix$(OBJ)
  44. #EXTRA2=
  45. #LIBS=    -ltermcap
  46. #BIN=    /usr/bin
  47. #CC=    cc
  48. #CFLAGS=    -DNO_SHIFT_FKEYS
  49. #SMALL=
  50. #LARGE=
  51. #OF=    -o ""
  52. #RF=    -c
  53. #PROGS=    elvis$(EXE) ctags$(COM) ref$(COM) elvrec$(COM) fmt$(COM) \
  54. #    elvprsv$(COM)
  55. #CHMEM=
  56. #SORT=    -DSORT
  57. #RM=    rm -f
  58. #CP=    cp
  59. #SYS=    unx
  60. #DUMMY=
  61. #CFG=
  62.  
  63. #---- These settings are recommended for System-V UNIX and SCO XENIX-386 ----
  64. #---- For AIX, add "-D_POSIX_SOURCE -DAIX -DTERMIOS" to CFLAGS.
  65. #---- For SCO (and maybe others) add "-DNEED_PTEM" to CFLAGS.
  66. #OBJ=    .o
  67. #EXE=
  68. #COM=
  69. #EXTRA=    unix$(OBJ)
  70. #EXTRA2=
  71. #LIBS=    -ltermcap
  72. #BIN=    /usr/local/bin
  73. #CC=    cc
  74. #CFLAGS=    -DM_SYSV -O -DNO_SHIFT_FKEYS
  75. #SMALL=
  76. #LARGE=
  77. #OF=    -o ""
  78. #RF=    -c
  79. #PROGS=    elvis$(EXE) ctags$(COM) ref$(COM) elvrec$(COM) fmt$(COM) \
  80. #    elvprsv$(COM)
  81. #CHMEM=
  82. #SORT=    -DSORT
  83. #RM=    rm -f
  84. #CP=    cp
  85. #SYS=    unx
  86. #DUMMY=
  87. #CFG=
  88.  
  89. #---- These settings are recommended for SCO XENIX-286 ----
  90. #OBJ=    .o
  91. #EXE=
  92. #COM=
  93. #EXTRA=    unix$(OBJ)
  94. #EXTRA2=
  95. #LIBS=    -ltcap
  96. #BIN=    /usr/local/bin
  97. #CC=    cc
  98. #CFLAGS=    -Ox -DCS_IBMPC
  99. #SMALL=
  100. #LARGE=    -M2m
  101. #OF=    -o ""
  102. #RF=    -c
  103. #PROGS=    elvis$(EXE) ctags$(COM) ref$(COM) elvrec$(COM) fmt$(COM) \
  104. #    elvprsv$(COM)
  105. #CHMEM=
  106. #SORT=    -DSORT
  107. #RM=    rm -f
  108. #CP=    cp
  109. #SYS=    unx
  110. #DUMMY=
  111. #CFG=    
  112. ###### compilation rule for Xenix-286
  113. #.c.o:
  114. #    $(CC) $(LARGE) $(CFLAGS) $(RF) $<
  115.  
  116. #---- These settings are recommended for BSD 4.3 UNIX and SunOS ----
  117. #---- For BSD386, add "-DTERMIOS" to CFLAGS
  118. #OBJ=    .o
  119. #EXE=    
  120. #COM=    
  121. #EXTRA=    unix$(OBJ)
  122. #EXTRA2=
  123. #LIBS=    -ltermcap
  124. #BIN=    /usr/local/bin
  125. #CC=    cc
  126. #CFLAGS=    -Dbsd -O
  127. #SMALL=
  128. #LARGE=
  129. #OF=    -o ""
  130. #RF=    -c
  131. #PROGS=    elvis$(EXE) ctags$(COM) ref$(COM) elvrec$(COM) elvprsv$(COM)
  132. #CHMEM=
  133. #SORT=    -DSORT
  134. #RM=    rm -f
  135. #CP=    cp
  136. #SYS=    unx
  137. #DUMMY=
  138. #CFG=
  139.  
  140. #---- These settings are recommended for Coherent 4.0 ----
  141. #OBJ=.o
  142. #EXE=
  143. #COM=
  144. #EXTRA=    unix$(OBJ) tinyprnt$(OBJ)
  145. #EXTRA2=
  146. #LIBS=    -ltermcap
  147. #BIN=    /usr/bin
  148. #CC=    cc
  149. #CFLAGS=    -O -VSUVAR -DNO_S5WINSIZE
  150. #SMALL=
  151. #LARGE=
  152. #OF=    -o ""
  153. #RF=    -c
  154. #PROGS=    elvis$(EXE) ctags$(COM) ref$(COM) elvrec$(COM) fmt$(COM) \
  155. #    elvprsv$(COM)
  156. #CHMEM=
  157. #SORT=
  158. #RM=    rm -f
  159. #CP=    cp
  160. #SYS=    unx
  161. #DUMMY=
  162. #CFG=
  163.  
  164. #---- These settings are recommended for Coherent 3.x ----
  165. #OBJ=.o
  166. #EXE=
  167. #COM=
  168. #EXTRA=    unix$(OBJ) tinyprnt$(OBJ)
  169. #EXTRA2=
  170. #LIBS=    -lterm
  171. #BIN=    /usr/bin
  172. #CC=    cc
  173. #CFLAGS=    -O -DCOHERENT -VSUVAR -DCRUNCH -DNO_CHARATTR -DNO_CURSORSHAPE \
  174. #    -DNO_DIGRAPH -DNO_MKEXRC -DNO_POPUP -DNO_FKEYS -DNO_ABBR -DNO_TAGSTACK
  175. #SMALL=
  176. #LARGE=
  177. #OF=    -o ""
  178. #RF=    -c
  179. #EVAL=    eval
  180. #PROGS=    elvis$(EXE) ctags$(COM) ref$(COM) elvrec$(COM) fmt$(COM) \
  181. #    elvprsv$(COM)
  182. #CHMEM=    fixstack 2000 elvis$(EXE)
  183. #SORT=
  184. #RM=    rm -f
  185. #CP=    cp
  186. #SYS=    unx
  187. #DUMMY=
  188. #CFG=
  189.  
  190. #---- These settings are recommended for Minix-ST ----
  191. #OBJ=    .o
  192. #EXE=
  193. #COM=
  194. #EXTRA=    unix$(OBJ)
  195. #EXTRA2=
  196. #LIBS=
  197. #BIN=    /usr/bin
  198. #CC=    cc
  199. ##CC=    gcc -s
  200. #CFLAGS=
  201. #SMALL=
  202. #LARGE=
  203. #OF=    -o ""
  204. #RF=    -c
  205. #PROGS=    elvis$(EXE) ctags$(COM) ref$(COM) elvrec$(COM) fmt$(COM) \
  206. #    elvprsv$(COM)
  207. #CHMEM=    chmem =18000 elvis$(EXE)
  208. #SORT=
  209. #RM=    rm -f
  210. #CP=    cp
  211. #SYS=    unx
  212. #DUMMY=
  213. #CFG=
  214.  
  215. #---- These settings are recommended for Minix-PC ----
  216. #OBJ=    .o
  217. #EXE=
  218. #COM=
  219. #EXTRA=    tinytcap$(OBJ) unix$(OBJ) tinyprnt$(OBJ)
  220. #EXTRA2=
  221. #LIBS=
  222. #BIN=    /usr/bin
  223. #CC=    cc
  224. #CFLAGS=    -O -m -w -DCRUNCH \
  225. #    -DNO_MKEXRC -DNO_CURSORSHAPE -DNO_CHARATTR -DNO_SHOWMODE \
  226. #    -DNO_MODELINE -DNO_OPTCOLS -DNO_DIGRAPH -DNO_EXTENSIONS \
  227. #    -DNO_ERRLIST -DNO_FKEY -DNO_VISIBLE -DNO_COLOR -DNO_POPUP \
  228. #    -DNO_TAGSTACK
  229. ###(not -NO_AT -DNO_SENTENCE -DNO_ABBR -DNO_RECYCLE -DNO_MAGIC -DNO_CHARSEARCH)
  230. #SMALL=
  231. #LARGE=
  232. #OF=    -o ""
  233. #RF=    -c
  234. #PROGS=    elvis$(EXE) ctags$(COM) ref$(COM) elvrec$(COM) fmt$(COM) \
  235. #    elvprsv$(COM)
  236. #CHMEM=
  237. #SORT=
  238. #RM=    rm -f
  239. #CP=    cp
  240. #SYS=    unx
  241. #DUMMY=
  242. #CFG=
  243.  
  244. #---- These settings are recommended for Amiga port done using Aztec 5.2b ----
  245. #    For AmigaDOS 2.04, you're all set! Its the default target!
  246. #OBJ=    .o
  247. #EXE=
  248. #COM=
  249. #EXTRA=    amiga$(OBJ) amitty$(OBJ) amisysio$(OBJ)
  250. #EXTRA2= tinytcap$(OBJ)
  251. #LIBS=    -lc
  252. #BIN=    sys:utilities
  253. #CC=    cc
  254. #CFLAGS=    -sob -Damiga
  255. #LNK=    ln
  256. #LFLAGS=
  257. #SMALL=
  258. #LARGE=
  259. #OF=    -o 
  260. #RF=
  261. #PROGS1=    elvis$(EXE) ctags$(COM) ref$(COM) elvrec$(COM) fmt$(COM) 
  262. #PROGS2=    elvprsv$(COM) ex$(COM) vi$(COM) view$(COM) input$(COM)
  263. #PROGS=    $(PROGS1) $(PROGS2)
  264. #CHMEM=
  265. #SORT=
  266. #RM=    delete
  267. #CP=    copy
  268. #SYS=    ami
  269. #DUMMY=
  270. #CFG=
  271.  
  272. #---- These settings are recommended for MS-DOS + MS-C + NDMAKE ----
  273. #OBJ=    .obj
  274. #EXE=    .exe
  275. #COM=    .exe    # .com might work, try it
  276. #EXTRA=    pc$(OBJ) sysdos$(OBJ) tinytcap$(OBJ)
  277. #EXTRA2=
  278. #LIBS=
  279. #BIN=    c:\dos
  280. #CC=    cl
  281. #CFLAGS=    -O -DCS_IBMPC -DCS_SPECIAL -DINTERNAL_TAGS
  282. #SMALL= /AC
  283. #LARGE=    /AL
  284. #OF=    -o 
  285. #RF=    -c
  286. #PROGS1=    elvis$(EXE) ex$(COM) ctags$(COM) ref$(COM) elvrec$(COM)
  287. #PROGS2=    wildcard$(COM) fmt$(COM) elvprsv$(COM)
  288. #PROGS=    $(PROGS1) $(PROGS2)
  289. #CHMEM=    exehdr /stack:0x4000 elvis.exe
  290. #SORT=
  291. #RM=    del
  292. #CP=    copy
  293. #SYS=    dos
  294. #DUMMY=
  295. #CFG=
  296. ###### compilation rule for MS-C
  297. #.c.obj:
  298. #    $(CC) $(LARGE) $(CFLAGS) $(RF) $<
  299.  
  300. ##---- These settings are recommended for MS-DOS + TURBO/BORLAND C ----
  301. ## CFG: name of the compiler config and response files
  302. ## TC_LIB & TC_INC: location of standard libraries and header files.
  303. #OBJ=    .obj
  304. #EXE=    .exe
  305. #COM=    .com
  306. #EXTRA=    pc$(OBJ) sysdos$(OBJ) tinytcap$(OBJ)
  307. #EXTRA2=
  308. #LIBS=@borland.rsp
  309. #BIN=    c:\bin
  310. #CFG=    borland.cfg borland.rsp
  311. #CC=    bcc
  312. #TC_LIB=    c:\bcc\lib
  313. #TC_INC=    c:\bcc\include
  314. #CFLAGS=    +borland.cfg
  315. ## uncomment next line iff using bcc, and you want to use pre-compiled headers
  316. #HDRS=    -H -H=borland.hdr
  317. ## uncomment next line to use med memory model for elvis
  318. ##CRNCH=    -DCRUNCH -mm
  319. #TC_CFLAGS1=    -ml -O -f- -w- -v -vi- -G- -DCS_IBMPC -DCS_SPECIAL -DINTERNAL_TAGS
  320. #TC_CFLAGS2=    $(HDRS) $(CRNCH) -I$(TC_INC) -L$(TC_LIB)
  321. ## extra flags for compiling support programs
  322. #SMALL=    -mt -lt -H- -v-
  323. #LARGE=
  324. ## extra flags for linking elvis (strip symbols)
  325. #EFLAGS=    -v-
  326. #OF=    -e
  327. #RF=    -c
  328. #PROGS1=    elvis$(EXE) ex$(COM) ctags$(COM) ref$(COM) elvrec$(COM)
  329. #PROGS2=    wildcard$(COM) fmt$(COM) elvprsv$(COM)
  330. #PROGS=    $(PROGS1) $(PROGS2)
  331. #CHMEM=
  332. #SORT=
  333. #RM=    del
  334. #CP=    copy
  335. #SYS=    dos
  336. #DUMMY=
  337. ##source file compilation rule:
  338. #.c.obj:
  339. #    $(CC) $(CFLAGS) $(RF) {$< }
  340.  
  341. #---- These settings can make DOS executables using the SCO UNIX compiler
  342. #OBJ=    .o
  343. #EXE=    .exe
  344. #COM=    .exe
  345. #EXTRA=    pc$(OBJ) sysdos$(OBJ) tinytcap$(OBJ)
  346. #EXTRA2=
  347. #LIBS=
  348. #BIN=    a:
  349. #CC=    cc -dos -F 4000
  350. #CFLAGS=